<template>
	
	<view class="container bgf pl30 pr30 pt30">
		<classItem v-for="item in data" :data="item" :key="item.id" :btn="false" @click="choose(item.id)"></classItem>
		<empty msg="暂无相关服务" v-if="!data.length"></empty>
		
		<view class="bpad"></view>
	</view>

	
</template>

<script setup lang="ts">
	import { onLoad, onPullDownRefresh, onReachBottom} from "@dcloudio/uni-app"
	import { routeFn, usePaging } from "../../lib/ts/util";
	
	
	const {
		data,
		reload,
		getMore
	} = usePaging('/api/homeinfo/GoodsList')
	
	onLoad(()=>{
		reload()
	})
	onPullDownRefresh(()=>{
		reload()
	})
	onReachBottom(()=>{
		getMore()
	})
	
	const choose = (e)=>{
		uni.$emit('choooseProject',e)
		routeFn.back()
	}
	
</script>

<style scoped lang="scss">
	.container{
		min-height: 100vh;
	}
	
	
	
	
</style>
